Resizable Arrays in Optimal Time and Space

نویسندگان

  • Andrej Brodnik
  • Svante Carlsson
  • Erik D. Demaine
  • J. Ian Munro
  • Robert Sedgewick
چکیده

We present simple, practical and eecient data structures for the fundamental problem of maintaining a resizable one-dimensional array, Al::l + n ? 1], of xed-size elements, as elements are added to or removed from one or both ends. Our structures also support access to the element in position i. All operations are performed in constant time. The extra space (i.e., the space used past storing the n current elements) is O(p n) at any point in time. This is shown to be within a constant factor of optimal, even if there are no constraints on the time. If desired, each memory block can be made to have size 2 k ? c for a speciied constant c, and hence the scheme works eeectively with the buddy system. The data structures can be used to solve a variety of problems with optimal bounds on time and extra storage. These include stacks, queues, randomized queues, priority queues, and deques.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

برآورد اقتصادی نصب آرایه‌های خورشیدی در واحد سطح نیروگاه‌های فتوولتائیک با استفاده از پیکربندی مجدد آرایه‌ها

Determining row spacing between PV arrays is one of the important issues in designing PV Plants; Increasing this space results in an increase in the cost of ground, as well as the PV plant output power per area and its decreasing leads into a mutual shading and the reduction of PV plant output power. That is while the tendency towards more output power production in limited areas such as roof b...

متن کامل

Experiences with the Design and Implementation of Space-Efficient Deques

A new realization of a space-efficient deque is presented. The data structure is constructed from three singly resizable arrays, each of which is a blockwiseallocated pile (a heap without the order property). The data structure is easily explainable provided that one knows the classical heap concept. All core deque operations are performed in O(1) time in the worst case. Also, general modifying...

متن کامل

Near-Minimum Time Optimal Control of Flexible Spacecraft during Slewing Maneuver

The rapid growth of space utilization requires extensive construction, and maintenance of space structures and satellites in orbit. &#10This will, in turn, substantiate application of robotic systems in space. In this paper, a near-minimum-time optimal control law is developed for a rigid space platform with flexible links during an orientating maneuver with large angle of rotation. The time op...

متن کامل

Development a New Technique Based on Least Square Method to Synthesize the Pattern of Equally Space Linear Arrays

Using the sampled data of a desired pattern is a common technique in pattern synthesizing of array factor (AF) of antenna arrays. Based on the obtained data matrix, Least Square Method (LSM) is used to calculate the exciting coefficient of array elements. The most important parameter, which involves the accuracy and complexity of calculation, is the sampling rate of the desired pattern. Classic...

متن کامل

Optimal Reconfiguration of Solar Photovoltaic Arrays Using a Fast Parallelized Particle Swarm Optimization in Confront of Partial Shading

Partial shading reduces the power output of solar modules, generates several peak points in P-V and I-V curves and shortens the expected life cycle of inverters and solar panels. Electrical array reconfiguration of PV arrays that is based on changing the electrical connections with switching devices, can be used as a practical solution to prevent such problems. Valuable studies have been perfor...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1999